Method LoadDocument(byte[], bool, long?)
Loads an , the shape System.Security.Cryptography.Xml needs for signatures and
encryption, within and maxCharacters.
preserveWhitespace defaults to true because canonicalization of a signed document depends on
it: dropping whitespace on load makes a valid signature fail to verify.
public static XmlDocument LoadDocument(byte[] xml, bool preserveWhitespace = true, long? maxCharacters = null)